.edit-profile {
  min-height: 100vh;
  background: #f5f5f5;

  .custom-nav {
    background: #fff;
    box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);

    .nav-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 88rpx;
      padding: 0 30rpx;

      .nav-back {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10rpx 20rpx 10rpx 10rpx;
        margin-right: 10rpx;

        &:active {
          opacity: 0.5;
        }

        .back-icon {
          width: 48rpx;
          height: 48rpx;
        }
      }

      .nav-title {
        flex: 1;
        text-align: center;
        font-size: 36rpx;
        font-weight: 600;
        color: #333;
        line-height: 88rpx;
      }

      .nav-right {
        width: 64rpx;
        text-align: right;

        .save-text {
          font-size: 28rpx;
          color: #667eea;
          font-weight: 600;
        }
      }
    }
  }

  .content {
    height: 100vh;
    box-sizing: border-box;
    padding: 0 0 120rpx;
  }

  .avatar-section {
    background: #fff;
    padding: 20rpx 0 40rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12rpx 0 20rpx;

    .avatar {
      width: 160rpx;
      height: 160rpx;
      border-radius: 50%;
      border: 6rpx solid rgba(102, 126, 234, 0.1);
      margin-bottom: 20rpx;
    }

    .avatar-tip {
      display: flex;
      align-items: center;
      gap: 8rpx;
      color: #999;
      font-size: 24rpx;

      .camera-icon {
        width: 32rpx;
        height: 32rpx;
      }
    }
  }

  .form-section {
    background: #fff;
    padding: 0 30rpx;

    .form-item {
      padding: 30rpx 0;
      border-bottom: 1rpx solid #f0f0f0;

      &:last-child {
        border-bottom: none;
      }

      .form-label {
        font-size: 28rpx;
        color: #333;
        margin-bottom: 20rpx;
        font-weight: 500;

        .required {
          color: #ff4757;
          margin-right: 8rpx;
        }
      }

      .form-input {
        width: 100%;
        height: 88rpx;
        font-size: 28rpx;
        color: #333;
        padding: 0 24rpx;
        background: #f8f8f8;
        border-radius: 12rpx;
        border: 1rpx solid #e0e0e0;
        line-height: 88rpx;

        &::placeholder {
          color: #999;
        }

        &.disabled {
          background: #f0f0f0;
          color: #999;
          border-color: #e5e5e5;
        }
      }

      &.phone-item {
        .phone-input-row {
          display: flex;
          align-items: center;
          gap: 20rpx;

          .form-input {
            flex: 1;
          }

          .code-btn {
            min-width: 180rpx;
            height: 80rpx;
            line-height: 80rpx;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            border-radius: 40rpx;
            font-size: 26rpx;
            border: none;
            padding: 0 24rpx;

            &::after {
              border: none;
            }

            &:disabled {
              background: #c8cdf2;
              color: #fff;
            }
          }
        }
      }

      .field-tip {
        margin-top: 12rpx;
        font-size: 24rpx;
        color: #999;
      }

      .sex-group {
        display: flex;
        align-items: center;
        gap: 32rpx;

        .sex-item {
          display: flex;
          align-items: center;
          gap: 10rpx;
          font-size: 26rpx;
          color: #555;

          radio {
            transform: scale(0.9);
          }
        }
      }
    }
  }

  .tips-section {
    background: #fff;
    margin: 20rpx 0;
    padding: 30rpx;

    .tip-item {
      display: flex;
      align-items: flex-start;
      gap: 16rpx;
      margin-bottom: 20rpx;

      &:last-child {
        margin-bottom: 0;
      }

      .tip-icon {
        font-size: 30rpx;
      }

      .tip-text {
        flex: 1;
        font-size: 24rpx;
        color: #666;
        line-height: 1.6;
      }
    }
  }

  .button-section {
    padding: 40rpx 30rpx 60rpx;

    .save-btn {
      width: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      border-radius: 50rpx;
      padding: 28rpx;
      font-size: 32rpx;
      font-weight: 600;
      margin-bottom: 20rpx;

      &::after {
        border: none;
      }
    }

    .cancel-btn {
      width: 100%;
      background: #fff;
      color: #999;
      border: 1rpx solid #e0e0e0;
      border-radius: 50rpx;
      padding: 28rpx;
      font-size: 32rpx;

      &::after {
        border: none;
      }
    }
  }
}
